package org.feng.interceptor;

import com.baomidou.mybatisplus.extension.plugins.handler.DataPermissionHandler;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.statement.select.PlainSelect;

/**
 * 数据权限处理器
 *
 * @author fengjinsong
 */
public interface MyDataPermissionHandler extends DataPermissionHandler {
    @Deprecated
    default Expression getSqlSegment(Expression where, String whereStatement) {
        throw new UnsupportedOperationException();
    }


    Expression getSqlSegmentWithPermission(PlainSelect plainSelect, String whereStatement);
}
